# -*- coding:utf-8 -*-

import threading

from common.import_pyside import QObject, Signal


class CusSignal(QObject):
    instance = None
    lock = threading.RLock()

    # 自定义信号
    actionUpdate = Signal()



    def __new__(cls, *args, **kwargs):
        if cls.instance:
            return cls.instance

        with cls.lock:
            cls.instance = super(CusSignal, cls).__new__(cls, *args, **kwargs)
            return cls.instance


